<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY copy "&#169;">
  <!ENTITY nbsp "&#160;">
  <!ENTITY laquo "&#171;">
  <!ENTITY raquo "&#187;">
]>
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">


  <xsl:include href="../layout.xsl"/>

  <xsl:template match="/">
    <xsl:apply-templates />
  </xsl:template>

  <xsl:template match="content">
    <script type="text/javascript" src="/js/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript" src="/js/tiny_mce/tiny_config.js"></script>

    <script type="text/javascript" src="/js/tiny_mce/plugins/imagemanager/js/mcimagemanager.js"></script>
    <script type="text/javascript" src="/js/tiny_mce/i_config.js"></script>

    <script type="text/javascript" src="/js/mootools.js"></script>
    <script type="text/javascript" src="/js/ceo.js"></script>

  
       
       <div class="contenthead"> <xsl:call-template name="Create_Path"/>
       <div class="top">
          <span class="title">
          <xsl:value-of select="Main/Title" />
        </span>

        </div> </div>
         
    

          <!--Main Form -->
          <form action="" method="post" name="form" id="form"> <article>
            <xsl:if test="Main/form/@sent = 1">
           
                <xsl:if test="Main/form/@error = 1">
                  <xsl:attribute name="class">massage_no</xsl:attribute>
                </xsl:if>
                <xsl:if test="Main/form/@error = 0">
                  <xsl:attribute name="class">massage_yes</xsl:attribute>
                </xsl:if>
                <xsl:value-of select="Main/form/@message" />
               
            </xsl:if>


           <ul class="editlist">

              <li>
                <label>Переместить в</label>
                 
                  <select name="struct" id="struct">
                    <xsl:for-each select="Main/form/struct/row">
                      <option value="{id}">
                        <xsl:if test="@active">
                          <xsl:attribute name="selected">selected</xsl:attribute>
                        </xsl:if>
                        <xsl:value-of select="name" disable-output-escaping="yes"/>
                      </option>
                    </xsl:for-each>
                  </select>
                
              </li>

              <li>
                <label>Тип перемещения</label>
                 
                  <select name="type" id="type">
                    <xsl:for-each select="Main/form/type/row">
                      <option value="{id}">
                        <xsl:if test="@active">
                          <xsl:attribute name="selected">selected</xsl:attribute>
                        </xsl:if>
                        <xsl:value-of select="name" />
                      </option>
                    </xsl:for-each>
                  </select>
                
              </li></ul>

            
           
          </article>  <div class="submitbox">
                <input name="save" type="submit" id="save"   value="Сохранить" />
              </div>
       </form>
  </xsl:template>

</xsl:stylesheet>